package com.example.testlxr9096.bean;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

@Entity
public class TestRecord {
    @PrimaryKey(autoGenerate = true)
    private int id;

    @ColumnInfo(name = "date")
    private String date;

    @ColumnInfo(name = "type")
    private String type; //1 网线检测，2 尾纤，3网线

    @ColumnInfo(name = "name")
    private String name;//线名

    @ColumnInfo(name = "errorInfo")
    private String errorInfo;

    @ColumnInfo(name = "state")
    private String state; // 1 通过，2 不通过

    public TestRecord(int id, String date, String type, String name, String errorInfo, String state) {
        this.id = id;
        this.date = date;
        this.type = type;
        this.name = name;
        this.errorInfo = errorInfo;
        this.state = state;
    }

    public TestRecord() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getErrorInfo() {
        return errorInfo;
    }

    public void setErrorInfo(String errorInfo) {
        this.errorInfo = errorInfo;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "TestRecord{" +
                "id=" + id +
                ", date='" + date + '\'' +
                ", type='" + type + '\'' +
                ", name='" + name + '\'' +
                ", errorInfo='" + errorInfo + '\'' +
                ", state='" + state + '\'' +
                '}';
    }
}
